import Vue from "vue";
import ElementUI from "element-ui"; // 组件库
import "element-ui/lib/theme-chalk/index.css"; // 样式
import App from "./App.vue";
import router from "./router";

// 导入
import store from "./store";

// 使用ElementUI
Vue.use(ElementUI);

// 权限拦截
import "./router/permission";

Vue.config.productionTip = process.env.NODE_ENV === "production";
console.log(process.env.VUE_APP_SERVICE_URL); // 开发环境 development, 生产环境 production

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
